package pw.jeb;

/**
 * @Author Eric
 * @Desc
 * @Date Create in 18-2-7 下午4:55
 * @Modified By
 */
public class LoginProcessHandler {

    @Subscribe({Type.LOGIN})
    public void login(Event event){
        System.out.println("print 'login'");
        JebProvider.me().jeb().post(Event.obtain(Type.GET_DATA));
    }
    @Subscribe({Type.GET_DATA})
    public void getData(Event event){
        System.out.println("print 'get data from server'");
        JebProvider.me().jeb().post(Event.obtain(Type.LOGOUT));
    }
    @Subscribe({Type.LOGOUT})
    public void logout(Event event){
        System.out.println("print 'logout'");
    }
}
